<template>
  <div class="table-operate flex-between">
    <h3>{{ title }}</h3>
    <n-flex>
      <slot></slot>
    </n-flex>
  </div>
</template>

<script lang="ts" setup>
  const route = useRoute()
  const title = route.meta.title || '表单'
</script>

<style scoped lang="scss">
  .table-operate {
    height: 48px;
    padding: 0 16px;
    background-color: var(--n-color);
    border-radius: 4px 4px 0 0;
  }
</style>
